import { requestWithToken } from "../utils/request";

// 热门品牌信息
export const getBrandData = (limit = 4) => {
  return requestWithToken("/home/brand", "get", { limit });
};

// 轮播图数据
export const getBannerData = (distributionSite = 1) => {
  return requestWithToken("/home/banner", "get", { distributionSite });
};

// 新鲜好物数据
export const getFreshStuff = (limit) => {
  return requestWithToken("/home/new", "get", { limit });
};

// 人气推荐数据
export const getHotPopularity = () => {
  return requestWithToken("/home/hot", "get");
};

// 产品区块数据
export const getGoodsData = () => {
  return requestWithToken("/home/goods", "get");
};

// 最新专题数据
export const getSpecialData = () => {
  return requestWithToken("/home/special", "get");
};
